package userSession

import "time"

type Option func(*source)

func WithUsernameHandler(handler UsernameHandler) Option {
	return func(o *source) {
		o.usernameHandler = handler
	}
}

func WithExpire(expireDuration time.Duration) Option {
	return func(o *source) {
		o.expireDuration = expireDuration
	}
}

func WithMaxUses(maxUses uint64) Option {
	return func(o *source) {
		o.maxUses = maxUses
	}
}

func WithCount(count uint64) Option {
	return func(o *source) {
		o.count = count
	}
}

var _, _, _, _ = WithUsernameHandler, WithExpire, WithMaxUses, WithCount
